package com.example.seckill.response;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Response<T> {
    private Integer code;
    private String msg;
    private T data;

    public Response (Integer code,String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static Response<Void> getNoBody(Integer code,String msg) {
        return new Response<>(code, msg);
    }

}
